home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / ablood1a / form2.frm < prev    next >
Text File  |  1998-10-11  |  5KB  |  157 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Begin VB.Form Form2 
  4.    Caption         =   "Settings"
  5.    ClientHeight    =   3360
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   5385
  9.    LinkTopic       =   "Form2"
  10.    ScaleHeight     =   3360
  11.    ScaleWidth      =   5385
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton Command1 
  14.       Caption         =   "Apply"
  15.       BeginProperty Font 
  16.          Name            =   "MS Sans Serif"
  17.          Size            =   9.75
  18.          Charset         =   0
  19.          Weight          =   700
  20.          Underline       =   0   'False
  21.          Italic          =   0   'False
  22.          Strikethrough   =   0   'False
  23.       EndProperty
  24.       Height          =   615
  25.       Left            =   120
  26.       TabIndex        =   3
  27.       Top             =   2640
  28.       Width           =   2655
  29.    End
  30.    Begin VB.CheckBox Check1 
  31.       Caption         =   "Sound"
  32.       Height          =   255
  33.       Left            =   120
  34.       TabIndex        =   2
  35.       Top             =   2160
  36.       Width           =   855
  37.    End
  38.    Begin MSComctlLib.Slider Slider1 
  39.       Height          =   495
  40.       Left            =   0
  41.       TabIndex        =   0
  42.       ToolTipText     =   "Select Size of Blood stream!"
  43.       Top             =   480
  44.       Width           =   5295
  45.       _ExtentX        =   9340
  46.       _ExtentY        =   873
  47.       _Version        =   393216
  48.       OLEDropMode     =   1
  49.       LargeChange     =   10
  50.       Min             =   1
  51.       Max             =   100
  52.       SelStart        =   1
  53.       TickFrequency   =   5
  54.       Value           =   1
  55.    End
  56.    Begin MSComctlLib.Slider Slider2 
  57.       Height          =   495
  58.       Left            =   0
  59.       TabIndex        =   7
  60.       ToolTipText     =   "Select Size of Blood stream!"
  61.       Top             =   1560
  62.       Width           =   5175
  63.       _ExtentX        =   9128
  64.       _ExtentY        =   873
  65.       _Version        =   393216
  66.       OLEDropMode     =   1
  67.       LargeChange     =   3
  68.       Min             =   1
  69.       Max             =   15
  70.       SelStart        =   1
  71.       TickFrequency   =   3
  72.       Value           =   1
  73.    End
  74.    Begin VB.Label Label5 
  75.       Caption         =   "Select how many shot should be shown before clearing the screen"
  76.       Height          =   255
  77.       Left            =   120
  78.       TabIndex        =   8
  79.       Top             =   1200
  80.       Width           =   4935
  81.    End
  82.    Begin VB.Shape Shape1 
  83.       Height          =   975
  84.       Left            =   3000
  85.       Top             =   2280
  86.       Width           =   2295
  87.    End
  88.    Begin VB.Label Label4 
  89.       Caption         =   "http://www.warpnet.org/bsi"
  90.       Height          =   255
  91.       Left            =   3120
  92.       TabIndex        =   6
  93.       Top             =   2880
  94.       Width           =   2055
  95.    End
  96.    Begin VB.Label Label3 
  97.       Caption         =   "Bootleg Software Inc."
  98.       Height          =   255
  99.       Left            =   3120
  100.       TabIndex        =   5
  101.       Top             =   2640
  102.       Width           =   1575
  103.    End
  104.    Begin VB.Label Label2 
  105.       Caption         =   "Author: Dustin Davis"
  106.       Height          =   255
  107.       Left            =   3120
  108.       TabIndex        =   4
  109.       Top             =   2400
  110.       Width           =   1455
  111.    End
  112.    Begin VB.Label Label1 
  113.       Caption         =   "Select Size of Blood Stream"
  114.       Height          =   255
  115.       Left            =   120
  116.       TabIndex        =   1
  117.       Top             =   120
  118.       Width           =   2055
  119.    End
  120. End
  121. Attribute VB_Name = "Form2"
  122. Attribute VB_GlobalNameSpace = False
  123. Attribute VB_Creatable = False
  124. Attribute VB_PredeclaredId = True
  125. Attribute VB_Exposed = False
  126. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  127. 'Blood Shot Screen Saver v1.0 Settings menu
  128. 'Author: Dustin Davis
  129. 'Bootleg Software Inc.
  130. 'http://www.warpnet.org/bsi
  131. '
  132. 'Nothing special, just some slider bars and so on.
  133. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  134. Private Sub Command1_Click()
  135. SaveSetting "blood", "settings", "size", Slider1.Value
  136. SaveSetting "blood", "settings", "clear", Slider2.Value
  137. If Check1.Value = Checked Then
  138. SaveSetting "blood", "settings", "sound", "true"
  139. ElseIf Check1.Value = Unchecked Then
  140. SaveSetting "blood", "settings", "sound", "false"
  141. End If
  142. Unload Me
  143. End Sub
  144.  
  145. Private Sub Form_Load()
  146. Dim sound As Boolean
  147. sound = GetSetting("blood", "settings", "sound", "true")
  148. If sound = True Then
  149.     Check1.Value = Checked
  150. ElseIf sound = False Then
  151.     Check1.Value = Unchecked
  152. End If
  153. Slider1.Value = GetSetting("blood", "settings", "size", "20")
  154. Slider1.Value = GetSetting("blood", "settings", "clear", "10")
  155. End Sub
  156.  
  157.